package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.Strategy;
import campus.aiit.ssl.manage.custom.dao.BaseDao;

import java.util.List;

/**
 * @author ihaokun
 * @date 2019/12/24 9:06
 */
public interface StrategyDao extends BaseDao<Strategy> {
  @Override
  int updateByPrimaryKeySelective(Strategy record);

  @Override
  int deleteByPrimaryKey(Long id);

  // @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
  @Override
  int insertSelective(Strategy record);

  @Override
  Strategy selectByPrimaryKey(Long id);

  List<Strategy> selectAll(String ifUserId);

  List<Strategy> selectByRoleId(int roleId);
}